<template>
    <div id="pushView">
      <div class="td-title">
        <div>今日限定</div>
        <div>青春回忆|爱的恨的全都是你</div>
      </div>
      <div class="td-content">
        <div
          v-for="(item, index) in jinList.slice(0, pushViewRows)"
          :key="index"
          class="content"
          @click="goMv(item)"
        >
          <img :src="item.cover+'?param=50y50'" />
          <div>{{ item.name }}</div>
        </div>
      </div>
    </div>
</template>

<script>
export default {
    props:{
        jinList:{
             type: Array
        },
        pushViewRows:{
            type: Number
        }
    },
    data() {
        return {
            
        }
    },
    methods:{
      goMv(item){
         this.$router.push({path: '/videoView',query:{id:item.id}})
      }
    }
}
</script>
<style scoped>

#pushView {
  width: 90%;
  height: 100%;
  margin: 5%;
  border-radius: 10px;
}
#pushView .td-title {
  height: 60px;
  background: #ddd;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
#pushView .td-title > div:nth-child(1) {
  font-size: 20px;
  font-weight: bold;
  color: red;
}
#pushView .td-title > div:nth-child(2) {
  font-weight: bold;
}
#pushView .td-content > div {
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  background: #cffffc;
  box-sizing: border-box;
}
#pushView > div.td-content .content > img {
  width: 40px;
  height: 40px;
}
#pushView > div.td-content .content > div {
  padding-left: 15px;
}
#pushView > div.td-content > div:last-child {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding-bottom: 25px;
}
</style>